import request from '@/utils/request'

// 获取所有缓存架信息
export function getShelvesListAPI() {
  return request({
    url: 'api/unbinding/getAllCacheRackInfo',
    method: 'get'
  })
}

// 获取所有拆解站状态信息
export function getAllStationStatusAPI() {
  return request({
    url: 'api/unbinding/getUnbindingStationStatus',
    method: 'get'
  })
}

// 释放缓存架
export function releaseShelvesAPI(data) {
  return request({
    url: `api/unbinding/freeCacheRack/${data.cacheRackName}/${data.unbindingStationName}`,
    method: 'get'
  })
}

export function getAllCacheRacksAPI(data) {
  return request({
    url: 'api/unbinding/getCacheRacks',
    method: 'get'
  })
}

export default { getShelvesListAPI, getAllStationStatusAPI, releaseShelvesAPI, getAllCacheRacksAPI }
